package com.wen.open.springframework.context.event;

import com.wen.open.springframework.context.ApplicationEvent;
import com.wen.open.springframework.context.ApplicationListener;

/**
 * @author Wen
 * @date 2023/4/26 09:45
 */
public class SimpleApplicationEventMulticaster extends AbstractApplicationEventMulticaster {


    @Override
    public void multicastEvent(ApplicationEvent event) {
        for (ApplicationListener applicationListener : getApplicationListeners(event)) {
            applicationListener.onApplicationEvent(event);
        }
    }
}

